Skip to content

Make pay repeat on routing failure - #993

Merged
cdecker merged 6 commits into
ElementsProject:masterfrom
ZmnSCPxj:pay-algo
Feb 16, 2018
Merged

Make pay repeat on routing failure#993
cdecker merged 6 commits into
ElementsProject:masterfrom
ZmnSCPxj:pay-algo

Conversation

@ZmnSCPxj

@ZmnSCPxj ZmnSCPxj commented Feb 14, 2018

Copy link
Copy Markdown
Contributor

Fixes: #863

  • Generalize send_payment internal interface.
  • Move pay command handling to a new lightning/payalgo.c system.
  • Make pay repeat.

Intent is to make improvements to pay algorithm in the future to become easier:

@ZmnSCPxj ZmnSCPxj changed the title [WIP] Make pay repeat on routing failure Make pay repeat on routing failure Feb 15, 2018
@Sjors

Sjors commented Feb 15, 2018

Copy link
Copy Markdown
Contributor

This seems quite useful.

I tried making a payment to mainnet Yalls using this PR and got Could not find a route (on master I get a variety of error messages and long hangs).

Making a donation to Recksplorer did work after 6 (automated) tries (on master it usually fails).

@cdecker cdecker left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent patchset as always @ZmnSCPxj, I'll let @rustyrussell merge this once he had a chance to review as well.

ACK 02ba654

Comment thread lightningd/pay.c
* no longer be called. */
static struct sendpay_command *
new_sendpay_command(struct command *cmd,
new_sendpay_command(const tal_t *cxt,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo: cxt -> ctx

@cdecker

cdecker commented Feb 16, 2018

Copy link
Copy Markdown
Member

ACK 02ba654

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants